package com.jh.tools.base;

import android.app.Application;
import android.content.Context;

import com.facebook.stetho.Stetho;
import com.facebook.stetho.common.LogUtil;
import com.jh.tools.config.ImageLoaderConfig;

/**
 * Created by niejiahuan on 2016/5/31.
 * 父类Application
 */
public class BaseApp extends Application {
    private static Context mContext;
    @Override
    public void onCreate() {
        super.onCreate();
        this.mContext=this;
        ImageLoaderConfig.initImageLoader(mContext);

        Stetho.initialize(
                Stetho.newInitializerBuilder(this)
                        .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                        .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
                        .build());

    }

    public static Context getmContext() {
        return mContext;
    }
}
